<?php

use Illuminate\Database\Seeder;

class RewardsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        for($i=0;$i<10000;$i++){
            DB::table('stock_rewards')->insert([
                'stock_activity_id' => 1,
                'user_id' => rand(1,100),
                'stock_order_id' => rand(1,1000),
                'money'=>rand(50,1000),
                'level'=>rand(1,3),
                'partner_trade_no'=>str_random(15),
            ]);
        }

    }
}
